package com.shigen.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.List;
import lombok.Data;

/**
 * first_menu
 *
 * @author
 */
@ApiModel(value = "com.shigen.demo.entity.FirstMenu一级菜单")
@Data
@TableName(value = "first_menu")
public class FirstMenu implements Serializable {

  /**
   * 一级菜单项的ID
   */
  @ApiModelProperty(value = "一级菜单项的ID")
  @TableId(type = IdType.AUTO)
  private Integer id;

  /**
   * 一级菜单显示的icon
   */
  @ApiModelProperty(value = "一级菜单显示的icon")
  private String icon;

  /**
   * 一级菜单的链接地址
   */
  @ApiModelProperty(value = "一级菜单的链接地址")
  private String url;

  /**
   * 一级菜单项显示的文字
   */
  @ApiModelProperty(value = "一级菜单项显示的文字")
  private String name;

  /**
   * 一级菜单对应的二级菜单
   */
  @ApiModelProperty(value = "一级菜单对应的二级菜单")
  @TableField(exist = false)
  List<SecondMenu> secondMenus;

  private static final long serialVersionUID = 1L;
}
